function testPrint(flag, pix) {
    if (flag) {
        console.log(pix, " 测试成功...")
    } else {
        console.log(pix, " 测试失败...")
    }
}

function listMoveDownCase01() {
    var list = ['A', 'B', 'C', 'D', 'E', 'F', 'G']
    var selVal = ['B', 'C', 'F']
    var ma = new MoveArray(list);
    var newResult = ma.listMoveDown(selVal);
    let r = eqArray(newResult, ['A', 'D', 'B', 'C', 'E', 'G', 'F']);
    testPrint(r, "listMoveDownCase01")
}

listMoveDownCase01()

function listMoveDownCase02() {
    var list = ['A', 'B', 'C', 'D', 'E', 'F', 'G']
    var selVal = ['E', 'F', 'G']
    var ma = new MoveArray(list);
    var newResult = ma.listMoveDown(selVal);
    let r = eqArray(newResult, ['A', 'B', 'C', 'D', 'E', 'F', 'G']);
    testPrint(r, "listMoveDownCase02")
}

listMoveDownCase02();

function listMoveUpCase01() {
    var list = ['A', 'B', 'C', 'D', 'E', 'F', 'G']
    var selVal = ['A', 'B', 'C']
    var ma = new MoveArray(list);
    var newResult = ma.listMoveUp(selVal);
    let r = eqArray(newResult, ['A', 'B', 'C', 'D', 'E', 'F', 'G'])
    testPrint(r, "listMoveUpCase01")
}

listMoveUpCase01();

function listMoveUpCase02() {
    var list = ['A', 'B', 'C', 'D', 'E', 'F', 'G']
    var selVal = ['A', 'B', 'D', 'G']
    var ma = new MoveArray(list);
    var newResult = ma.listMoveUp(selVal);
    let r = eqArray(newResult, ['A', 'B', 'D', 'C', 'E', 'G', 'F'])
    testPrint(r, "listMoveUpCase02")
}

listMoveUpCase02();

function listMoveUpCase03() {
    var list = ['A', 'B', 'C', 'D', 'E', 'F', 'G']
    var selVal = ['B', 'D', 'F', 'G']
    var ma = new MoveArray(list);
    var newResult = ma.listMoveUp(selVal);
    let r = eqArray(newResult, ['B', 'A', 'D', 'C', 'F', 'G', 'E'])
    testPrint(r, "listMoveUpCase03")
}

listMoveUpCase03();

function listMoveTopCase01() {
    var list = ['A', 'B', 'C', 'D', 'E', 'F', 'G']
    var selVal = ['B', 'D', 'F', 'G']
    var ma = new MoveArray(list);
    var newResult = ma.listMoveTop(selVal);
    let r = eqArray(newResult, ['B', 'D', 'F', 'G', 'A', 'C', 'E'])
    testPrint(r, "listMoveTopCase01")
}

listMoveTopCase01();

function listMoveTopCase02() {
    var list = ['A', 'B', 'C', 'D', 'E', 'F', 'G']
    var selVal = ['A', 'B', 'C']
    var ma = new MoveArray(list);
    var newResult = ma.listMoveTop(selVal);
    let r = eqArray(newResult, ['A', 'B', 'C', 'D', 'E', 'F', 'G'])
    testPrint(r, "listMoveTopCase02")
}

listMoveTopCase02()

function listMoveBottomCase01() {
    var list = ['A', 'B', 'C', 'D', 'E', 'F', 'G']
    var selVal = ['B', 'D', 'F', 'G']
    var ma = new MoveArray(list);
    var newResult = ma.listMoveBottom(selVal);
    let r = eqArray(newResult, ['A', 'C', 'E', 'B', 'D', 'F', 'G'])
    testPrint(r, "listMoveBottomCase01")
}

listMoveBottomCase01();

function listMoveBottomCase02() {
    var list = ['A', 'B', 'C', 'D', 'E', 'F', 'G']
    var selVal = ['A', 'B', 'C']
    var ma = new MoveArray(list);
    var newResult = ma.listMoveBottom(selVal);
    let r = eqArray(newResult, ['D', 'E', 'F', 'G', 'A', 'B', 'C'])
    testPrint(r, "listMoveBottomCase02")
}

listMoveBottomCase02();


function resetCase01() {
    var list = ['A', 'B', 'C', 'D', 'E', 'F', 'G']
    var selVal = ['A', 'B', 'C']
    var ma = new MoveArray(list);
    var newResult = ma.listMoveBottom(selVal);
    ma.reset();
    let r = eqArray(ma.currentArr, list)
    testPrint(r, "resetCase01")
}

resetCase01();